﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Centny.PdfReader.Types
{
    public class PdfPointer : PdfClass
    {
        public long Offset { get; set; }
        public int MTime { get; set; }
        public char State { get; set; }
        public PdfPointer()
        {
            this.Offset = 0;
            this.MTime = 0;
            this.State = (char)0;
        }
        public override bool Equals(object obj)
        {
            if (!obj.GetType().Equals(typeof(PdfPointer)))
            {
                return false;
            }
            else
            {
                PdfPointer o = (PdfPointer)obj;
                return this.Offset == o.Offset && this.MTime == o.MTime && this.State == o.State;
            }
        }
        public override int GetHashCode()
        {
            return this.Offset.GetHashCode();
        }
    }
}
